package com.hgc.ch02.sort;

import com.hgc.ch02.tool.MakeArray;

import java.util.Arrays;

/**
 * Created by 01367627 on 2019/7/8.
 */
public class ArrayCopyTest {
    public static void main(String[] args) {
        int[] array = MakeArray.makeArray(10);
        SortUtil.print(array);
        System.out.println();
        int[] newArr = Arrays.copyOfRange(array,0,5);
        SortUtil.print(newArr);
    }
}
